package com.canaan.business.domain.inOutStock;

import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 码货记录对象 wms_yardage_goods_record
 *
 * @author ruoyi
 * @date 2023-02-09
 */
@ApiModel(description = "wms_yardage_goods_record")
@TableName("wms_yardage_goods_record")
@Data
public class YardageGoodsRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("id")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String no;

    /** 码货任务单号 */
    @Excel(name = "码货任务单号")
    @ApiModelProperty("码货任务单号")
    private String taskNo;

    /** 条码 */
    @Excel(name = "条码")
    @ApiModelProperty("条码")
    private String barCode;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编号")
    private String productNo;

    /** 库位 */
    @Excel(name = "库位")
    @ApiModelProperty("库位")
    private String storehouseLocationNo;

    /** 码货数量 */
    @Excel(name = "码货数量")
    @ApiModelProperty("码货数量")
    private Long pickingQty;

    /** 容器编号 */
    @Excel(name = "容器编号")
    @ApiModelProperty("容器编号")
    private String containerNo;

    /** 是否删除：1是 0否 */
    @ApiModelProperty(" 是否删除：1是 0否")
    private String delFlag;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Integer sort;

    /**
     * 是否备料
     */
    @ApiModelProperty("排序")
    private Integer whetherMp;

    /** 任务编号列表 */
    List<String> taskNos;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("taskNo", getTaskNo())
            .append("barCode", getBarCode())
            .append("productNo", getProductNo())
            .append("storehouseLocationNo", getStorehouseLocationNo())
            .append("pickingQty", getPickingQty())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .toString();
    }

    public List<String> getTaskNos() {
        return taskNos;
    }

    public void setTaskNos(List<String> taskNos) {
        this.taskNos = taskNos;
    }
}
